package com.water.wfo.news.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author water&7
 * @since 2024-07-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="News对象", description="")
public class NewsEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "新闻名称")
    private String title;

    @ApiModelProperty(value = "新闻内容")
    private String content;

    @ApiModelProperty(value = "发布时间")
    private Date publishDate;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "新闻类型")
    private Integer typeId;

    @ApiModelProperty(value = "点击数")
    private Integer click;

    @ApiModelProperty(value = "新闻名称")
    private Integer isHead;

    @ApiModelProperty(value = "新闻名称")
    private Integer isImage;

    @ApiModelProperty(value = "新闻名称")
    private String imageName;

    @ApiModelProperty(value = "新闻名称")
    private Integer isHot;


}
